package com.igeek.collateral.result;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * TODO
 *
 * @author chh
 * @since 2024/7/1
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("统一返回结果集")
public class Result  {


    private boolean flag;

    private Object data;

    private String message;



    public Result(boolean flag, String message,Object data) {
        this.flag = flag;
        this.message = message;
        this.data=data;
    }


    public Result(boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public Result(boolean flag, String message) {
        this.flag = flag;
        this.message = message;
    }




}
